package com.fengchao.api.dao.odr;

import com.fengchao.api.dao.BaseMapper;
import com.fengchao.model.odr.OdrOrder;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OdrOrderMapper extends BaseMapper<OdrOrder> {
    /**
     * 根据订单号查询订单
     *
     * @param orderSn
     * @return
     */
    OdrOrder findOdrOrderByOderSn(String orderSn);


    /**
     * 根据userId查询订单
     *
     * @param userId
     * @return
     */
    List<OdrOrder> findOdrOrderListByUserId(@Param("userId") Integer userId, @Param("status") String status, @Param("nowDate") Date nowDate, @Param("start") Integer start, @Param("count") Integer count);


}